/**
 * Created by lynnwang on 5/4/17.
 */


function makeConfirm() {
    $.ajax({
        url: "changestatus",
        type: "GET",
        data : {
            notificationId : $("#notificationId").text()
        },
        dataType: "json",
        async: false,
        success: function(data){
            if (data.success) setNotifiedStatus()
            else alert('confirm failed!')
        },
        error: function (xhr, type) {
            alert('Ajax error!');
        }
    });
}

function setNotifiedStatus() {

    var finishstamp = document.getElementById("finish_stamp");
    document.getElementById("finish_stamp").style.display = "flex";
//            setAttribute.("style", "display:flex");
//            document.getElementById("confirm_button").style.visibility = "hidden";
    document.getElementById("confirm_button").style.display = "none";

}